const GET_VERSION = 'GET_VERSION';

export default {
  namespaced: true,
  state: () => ({
    version: 0,
  }),
  mutations: {
    [GET_VERSION](state) {
      state.version++;
    },
  },
  actions: {
    /* getVersion({ state, commit, rootState }) {
      if ((state.count + rootState.count) % 2 === 1) {
        commit('increment');
      }
    }, */
    getVersion({ commit }) {
      commit(GET_VERSION);
    },
  },
};
